﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace ZuesControls.Controls
{
    public class MyListboxItem : ListBoxItem
    {
        static MyListboxItem()
        {

            DefaultStyleKeyProperty.OverrideMetadata(typeof(MyListboxItem), new FrameworkPropertyMetadata(typeof(MyListboxItem)));
        }


        public bool IsShowGroup
        {
            get { return (bool)GetValue(IsShowGroupProperty); }
            set { SetValue(IsShowGroupProperty, value); }
        }

        // Using a DependencyProperty as the backing store for IsShowGroup.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty IsShowGroupProperty =
            DependencyProperty.Register("IsShowGroup", typeof(bool), typeof(MyListboxItem), new PropertyMetadata(false, IsShowGroupPropertyChanged));

        private static void IsShowGroupPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {

        }
    }
}
